package com.tmt.im.wallet.controler.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/9/4 22:41
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "ReceivedDetailItem", description = "红包领取详情对象")
public class ReceivedDetailItem implements Serializable {
    @Serial
    private static final long serialVersionUID = -4987681284165059174L;

    @Schema(description = "领取详情记录ID")
    private Long id;

    @Schema(description = "领取人ID")
    @JsonProperty("userId")
    private Long memberId;

    @Schema(description = "领取人昵称")
    @JsonProperty("name")
    private String memberNick;

    @Schema(description = "领取人级别")
    @JsonProperty("level")
    private int grade;

    @Schema(description = "领取人头像")
    private String avatar;

    @Schema(description = "领取额度, 单位：分")
    private Long amount;

    @Schema(description = "领取时间")
    @JsonProperty("reciveTime")
    private Long receivedTime;

    @Schema(description = "是否是领取的最多的人，未领完之前都为false")
    @JsonProperty("isFirstGood")
    private boolean firstGood;
}
